package com.cafebabe.bean;

import com.cafebabe.callback.CallBaseAction;

/**
 * Created by xForMe on 2015/7/31.
 */
public class MongoQuery {
    /**
     * 需要查询的方法
     */
    private String method;
    /**
     * 调用参数的类型
     */
    private Class[] argsType;
    /**
     * 查询的字段
     */
    private String search;
    /**
     * 查询的值
     */
    private Object[] object;
    /**
     * 回调的函数
     */
    private CallBaseAction callBaseAction;

    public MongoQuery() {
    }

    public MongoQuery(String method, Class argsType, String search, Object object) {
        this.method = method;
        this.argsType = new Class[]{argsType};
        this.search = search;
        this.object = new Object[]{object};
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }



    public Class[] getArgsType() {
        return argsType;
    }

    public void setArgsType(Class[] argsType) {
        this.argsType = argsType;
    }

    public CallBaseAction getCallBaseAction() {
        return callBaseAction;
    }

    public void setCallBaseAction(CallBaseAction callBaseAction) {
        this.callBaseAction = callBaseAction;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public Object[] getObject() {
        return object;
    }

    public void setObject(Object[] object) {
        this.object = object;
    }
}
